package com.design.create.adapter.object_adapter;

/**
 * 适配器角色Adapter
 */
public class ObjectAdapter implements ObjectTarget{

    //直接关联Adaptee
    private ObjectAdaptee objectAdaptee;

    //通过构造函数创建对象
    public ObjectAdapter(ObjectAdaptee objectAdaptee) {
        this.objectAdaptee = objectAdaptee;
    }

    @Override
    public void request() {
        this.objectAdaptee.specialRequest();
    }
}
